package com.bite.system.domain.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bite.common.core.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

/**
 * @TableName tb_user
 */
@TableName(value ="tb_user")
@Getter
@Setter
public class User extends BaseEntity {
    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    private String avatar;

    private String nickName;

    private String phone;

    private String password;

    private String wechat;

    private String email;

    private String schoolName;

    private String majorName;

    private Integer status;

    private String introduce;

    private Integer sex;
}
